package starter.actions.orangehrmlive;

/**
 * @ClassName HeaderpageSteps
 * @Date 2024/10/30 09:08 44
 * @Author Jack Chen
 * @Description serenity-cucumber-page-objects-starter-master
 * @Version 1.0
 */

import net.serenitybdd.annotations.Step;
import org.junit.Assert;
import starter.pageobjects.orangehrmlive.TopbarPage;

public class TopbarPageSteps {
    TopbarPage topbarPage;

    @Step
    public void openPage() {
        topbarPage.open();
    }

    @Step("user click logout button to exit the system")
    public void userLogout() {
        topbarPage.clickUserDowndown();
        topbarPage.clickLogout();
    }

    @Step
    public void verifyPageContent() {

    }

    @Step("get the page title and verify if it is right as given")
    public void verifyHeaderTitle(String expTittle) {
        String title = topbarPage.getCurrentPageTitle();
        Assert.assertEquals(expTittle, title);
    }

    @Step
    public void verifyHeaderContent() {

    }

    @Step
    public void verifyPageTitleAndContent() {

    }

}